package com.linfeng.business.admin.web;

import com.linfeng.business.admin.api.IAdminService;
import com.linfeng.business.admin.data.admin.vo.AdminDetailVO;
import com.linfeng.business.admin.data.admin.vo.AdminPageVO;
import com.linfeng.business.admin.dto.data.admin.SysAdminDTO;
import com.linfeng.business.admin.dto.event.admin.cmd.AdminCreateCmd;
import com.linfeng.business.admin.dto.event.admin.cmd.AdminUpdateCmd;
import com.linfeng.component.common.response.ResponseEntity;
import com.linfeng.component.mybatisplus.controller.Controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/api/admin")
public class AdminController extends Controller<AdminPageVO, AdminDetailVO, SysAdminDTO, AdminCreateCmd, AdminUpdateCmd, IAdminService> {

    @Autowired
    private IAdminService iAdminService;

    @GetMapping(value = "/v1/login/admin")
    public ResponseEntity<SysAdminDTO> loginAdmin(String token) {

        return ResponseEntity.body(new SysAdminDTO());
    }
}
